<template>
  <view class="app">
    <router-view />
  </view>
</template>

<script>
export default {
  onLaunch() {
    console.log('App launched!');
    // 可以在此初始化全局数据、检查登录状态等
  },
  onShow() {
    console.log('App shown!');
  },
  onHide() {
    console.log('App hidden!');
  },
  globalData: {
    userInfo: null
  }
}
</script>

<style>
.app {
  height: 100vh;
}
</style>